package com.szy.news.activity;

import net.tsz.afinal.FinalBitmap;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;
import android.widget.ImageView;

public class ImageActivity extends Activity {
	private FinalBitmap finalbitmap;
//	public static final String path="172.27.35.1";
//	public static final String images = "http://"+path+":8080/web/image/";
	
	private ImageButton back;
//	private String image1_1_1="image1_1_";
//	private String image1_2_1="image1_2_";
//	private String image1_3_1="image1_3_";
//	
//	private String image2_1_1="image2_1_";
//	private String image2_2_1="image2_2_";
//	private String image2_3_1="image2_3_";
//	
//	private String image3_1_1="image3_1_";
//	private String image3_2_1="image3_2_";
//	private String image3_3_1="image3_3_";
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_image);
		finalbitmap = FinalBitmap.create(this);
		
		Intent in=this.getIntent();
		
		ImageView ivPic=(ImageView) findViewById(R.id.img_one);
		finalbitmap.display(ivPic, in.getStringExtra("itemid"));
		
		back = (ImageButton) findViewById(R.id.image_back);
		back.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				finish();
			}
		});
	}
}
